import request from "@/utils/adminRequest";

// 查询股票信息列表
export function listStock(query) {
  return request({
    url: '/stock/getStockSymbol',
    method: 'get',
    params: query
  })
}

// 查询股票信息详细
export function getStock(stockSymbol) {
  return request({
    url: '/system/stock/' + stockSymbol,
    method: 'get'
  })
}

// 删除股票信息
export function delStock(stockSymbols) {
  return request({
    url: '/admin/deleteStockMessage',
    data: stockSymbols,
    method: 'delete'
  })
}

//生成股票
export function initializeStockMessageStock(initializeStockNum) {
  return request({
    url: '/stock/initializeStockMessage',
    method: 'post',
    params: { initializeStockNum }  // 👈 改成 params，不要 data
  })
}


